home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 2
/
Nebula Two.iso
/
WebObjects
/
SourceCode
/
CalendarRadio.wo
/
CalendarRadioExample
/
CalendarRadioEx.wod
< prev
next >
Wrap
Text File
|
1996-04-19
|
2KB
|
105 lines
////////////////////////
// CalendarRadio
// by Charles Lloyd
////////////////////////
CalendarRadioComposite: CalendarRadio {
currentYear = userYear;
currentMonth = userMonth;
dayChoice = userDayChoice;
cellPadding = userCellPadding;
cellSpacing = userCellSpacing;
borderSize = userTableBorder;
yearFontSize = userYearFontSize;
monthFontSize = userMonthFontSize;
dayFontSize = userDayFontSize;
showButtons = userShowButtons;
cellAlignment = userCellAlignment;
};
ChoiceForm: WOForm {
action = displayChoice;
};
ChoiceString: WOString {
value = userDayChoice;
};
SetupForm: WOForm {
action = reconfigureCalendar;
};
YearField: WOTextField {
value = userYear;
size = inputCellSize;
};
MonthChoice: MonthChoice {
matrixName = "MonthChoiceA";
selectedMonthInt = userMonth;
borderSize = 2;
};
DayField: WOTextField {
value = userDayChoice;
size = inputCellSize;
};
CellPaddingField: WOTextField {
value = userCellPadding;
size = inputCellSize;
};
CellSpacingField: WOTextField {
value = userCellSpacing;
size = inputCellSize;
};
TableBorderField: WOTextField {
value = userTableBorder;
size = inputCellSize;
};
YearFontChoice: FontChoice {
matrixName = "YearFontChoice";
selectedItem = userYearFontSize;
isVertical = YES;
};
MonthFontChoice: FontChoice {
matrixName = "MonthFontChoice";
selectedItem = userMonthFontSize;
isVertical = YES;
};
DayFontChoice: FontChoice {
matrixName = "DayFontChoice";
selectedItem = userDayFontSize;
isVertical = YES;
};
ShowButtonsCheckBox: WOCheckBox {
checked = userShowButtonsChecked;
};
CellAlignmentChoice: RadioMatrix {
matrixName = "CellAlignmentChoice";
selection = userCellAlignment;
isVertical = NO;
list = alignmentStrings;
};
ComponentDescription: ComponentDescription {
componentName = "CalendarRadio";
};
ShowSourceControls: ShowSource {
componentName = "CalendarRadio";
};
RCBody: WOGenericContainer {
elementName = "body";
bgcolor = WOApp.globalBackgroundColor;
};